public OnPlayerEnterDynamicCP(playerid, checkpointid) {
	if(checkpointid != gameData[iCheckpoint])
		return true;
	
	if(gameData[bIsRoundActive] == true) {
		if((playerData[playerid][team] == TEAM_HOME && teamData[TEAM_HOME][bAttacking] == false) || (playerData[playerid][team] == TEAM_AWAY && teamData[TEAM_AWAY][bAttacking] == false)) 
			DeTriggerCPCount();
		
		if((playerData[playerid][team] == TEAM_HOME && teamData[TEAM_HOME][bAttacking] == true) || (playerData[playerid][team] == TEAM_AWAY && teamData[TEAM_AWAY][bAttacking] == true)) {
			if(!IsPlayerInAnyVehicle(playerid))
				TriggerCPCount(playerid);
		}
	}
	
	return true;
}